From 31be0daf8c514ae51abb415ad7c65c0fa01cab26 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 15 Nov 2002 06:10:08 +0000 Subject: [PATCH] snprintf is C99, not C90. Whack color and class so data will display on the GPS V. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@162 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/jeeps/gpsapp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpsbabel/jeeps/gpsapp.c b/gpsbabel/jeeps/gpsapp.c index 4a02b4d6e..4937ea1e0 100644 --- a/gpsbabel/jeeps/gpsapp.c +++ b/gpsbabel/jeeps/gpsapp.c @@ -267,7 +267,7 @@ static void GPS_A001(GPS_PPacket packet) tag = *p; data = GPS_Util_Get_Short(p+1); - snprintf(pb, sizeof(pb), "Capability '%c'. Type %d", tag, data); + sprintf(pb, "Capability '%c'. Type %d", tag, data); GPS_User(pb); /* Only one type of P[hysical] so far */ @@ -1876,9 +1876,9 @@ static void GPS_D109_Send(UC *data, GPS_PWay way, int32 *len) p = data; - *p++ = 1; /* D109 constant data (grrrr.) */ - *p++ = way->wpt_class; - *p++ = way->colour; + *p++ = 1 /* way->wpt_class */; /* For D109, the class must be 1 */ + *p++ = 0 /* way->colour*/ ; /* If non-zero, the waypoint is in + invisible ink on the V. */ *p++ = way->dspl; *p++ = 0x70; GPS_Util_Put_Short(p,way->smbl); -- 2.30.2